# @Time : 2025-01-15 9:54
# @Author : Fioman 
# @Phone : 13149920693
"""
相机参数的设置,像素比和高宽比,拍摄宽度和拍摄高度
"""
from db_tool.db_config import TableName, TableRegister, re_init_table

tableName: str = TableName.cameraParams.name
initData = {
    "key": "1",
    "cameraWidth": 2048,
    "cameraHeight": 4000,
    "heightWidthRatio": 1,
    "mm2pix": 3.45,
    "middleJointPos": 1643,
    "heightMin": 1000,
    "heightMax": 1500,
    "sizeScale": 3,
}
TableRegister.register_table(tableName, initData)

if __name__ == '__main__':
    # 重新创建表结构,或者新增表字段之后,重新初始化表内容,谨慎使用
    re_init_table(tableName, initData)
